package com.com.knowledgepaymentmanagementsystem.service.course.impl;

import com.com.knowledgepaymentmanagementsystem.mapper.course.AudioMapper;
import com.com.knowledgepaymentmanagementsystem.pojo.course.Audio;
import com.com.knowledgepaymentmanagementsystem.service.course.AudioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张攀
 * @version 1.0
 * @description: TODO
 * @date 2025/9/22 下午4:57
 */
@Service
public class AudioServiceImpl implements AudioService {

    @Autowired
    private AudioMapper audioMapper;
    @Override
    public List<Audio> findAduioList(Audio audio) {
        return audioMapper.findAduioList(audio);
    }

    @Override
    public Object insertAudios(Audio audio) {
        return audioMapper.insert(audio);
    }

    @Override
    public void updateAudios(Audio audio) {
        audioMapper.updateById(audio);
    }

    @Override
    public void deleteAudios(Integer id) {
        audioMapper.deleteById(id);
    }
}
